package com.ylr.template;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author ylr
 * @version 1.0.0
 * @ClassName testServiceTemplate2.java
 * @Description TODO
 * @createTime 2022年01月08日 15:27:00
 */

@Slf4j
@Service(value = "testServiceTemplate2")
@AllArgsConstructor
@NoArgsConstructor
public class testServiceTemplate2 extends AbstractService {
    private String name;


    public String getName() {
        return "Good "+ name;
    }

    public void setName(String name) {
        this.name = name+" Successful";
    }

    @Override
    public Object sayHello(Object o) {
        System.out.println("testServiceTemplate2 sayHello I'm "+o.toString());
        return null;
    }
}
